<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

</head>
<body>
    <button id="btn">提交</button>
    <script>
        $("#btn").cilck(function(){
            //jquery的ajax二级封装
            $.get("/userinfo",{
                userId:"001"

            },(data)=>{
                console.log(data);
            })
        })
    </script>
    
</body>
</html>